console.log('start');
setTimeout(() => {
  console.log('children2');
  Promise.resolve().then(() => {
    console.log('children3');
  })
}, 0);

new Promise(function(resolve, reject) {
  console.log('children4');
  setTimeout(() => {
    console.log('children5');
    resolve('children6')
  }, 0);
}).then(res => {
  // 第一轮没有加进去微任务队列  因为只有resolve()之后才会 这里resolve在setTimeOut里面 所以没有加进去
  console.log('children7');
  setTimeout(() => {
    console.log(res)
  }, 0)
})

// 我的答案：start - children4 - children7 - children2 - children3 - children5 - children6

// 正解：
// start
// children4
// children2
// children3
// children5
// children7
// children6
